﻿@using CuongHanh
@using CuongHanh.Context
@using CuongHanh.Models
@using CuongHanh.Models.View
@{
    string language = Session[AppUtil.LANGUAGE] + "";
}
<h2>
    @Html.GetResource("gotrangtricongtrinh")
</h2>
<ul class="f-content-cata">
                        
    @foreach (CategoryView item in Cached.Sigleton.GetMenuByBranchId(AppUtil.WOOD_CODE))
    {
        string categoryName = AppUtil.CategoryViewName(item,
                language);
        <li  class="category-menu">
            <a href="@UrlManager.LinkWoodCategory(item.Id,
                             categoryName.ToUrlName())">@categoryName</a>
            <ul class="sub-cata">
                @foreach (SubCategoryView subItem in item.SubCategoriesView)
                {
                    string subCategoryName = AppUtil.SubCategoryViewName(subItem,
                            language);
                    <li><a href="@UrlManager.LinkWoodSubCategory(subItem.Id,
                                         subCategoryName.ToUrlName(),
                                         categoryName.ToUrlName())">@subCategoryName</a></li>
                }
            </ul>
        </li>
    }
</ul>